﻿using Newtonsoft.Json;
using System;

namespace COMMON.Json
{
    /// <summary>
    /// Json响应解析
    /// </summary>
    public class JSONResponseParser
    {

        /// <summary>
        /// 解析响应信息
        /// </summary>
        /// <param name="info">响应的文本内容</param>
        /// <returns>对象</returns>
        public static Object parse(string info)
        {
            //Newtonsoft.Json.JsonConverter
            try
            {
                return Newtonsoft.Json.JavaScriptConvert.DeserializeObject(info);
            }
            catch (Exception exp)
            {

                throw exp;
            }
        }
    }
}
